package com.eddie.adapter.classadapter;

/**
 * 适配器类
 * @author Eddie
 * @date 2022/07/28 12:24
 **/
public class VoltageAdapter extends Voltage220V implements IVoltage5V{
    @Override
    public int output5V() {
        //获取到220V电压
        int src = output();
        //转成5V
        int desV = src / 44;
        return desV;
    }
}
